import { baseImgUrl } from "../../setting";
Component({
  mixins: [],
  data: {
    imgBaseUrl: baseImgUrl,   //图片域名
    errorImg: "", //错误图片
  },
  props: {
    imgMode: "scaleToFill",
    imgSrc: '',
    imgClass: '',
    imgKey: '',
    imgType: ''
  },
  didMount() { },
  didUpdate() { },
  didUnmount() { },
  methods: {
    imgTap(e) {
      if(e.currentTarget.dataset.key){
        this.props.onImgTap(e.currentTarget.dataset.key,e.currentTarget.dataset.type);
      }
    }
  },
});
